﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace YJKRevitAxisModule
{
	public partial class OffsetLengthForm : System.Windows.Forms.Form
	{
		public double OffsetLength
		{
			get
			{
				return this.m_OffsetLength;
			}
		}

		public OffsetLengthForm(double offsetLength)
		{
			this.m_OffsetLength = offsetLength;
			this.InitializeComponent();
			this.numericUpDownLength.Value = decimal.Parse(this.m_OffsetLength.ToString());
		}

		private void btnOk_Click(object sender, EventArgs e)
		{
			decimal value = this.numericUpDownLength.Value;
			this.m_OffsetLength = decimal.ToDouble(value);
		}

		private double m_OffsetLength;
	}
}
